<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="../common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新增</title>
</head>
<body>
	<table border="1" cellspacing="0">
		<tr>
			<th>序号</th>
			<th>标题</th>
			<th>价格</th>
			<th>数量</th>
			<th>备注</th>
			<th>操作</th>
		</tr>
		<c:forEach var="o" items="${datas }" varStatus="indx">
			<tr>
				<td>${indx.index+1 }</td>
				<td>${o.title }</td>
				<td>${o.price }</td>
				<td>${o.num }</td>
				<td>${o.remark }</td>
				<td>
					<a href="${ctx}/item/delete/${o.id }" onclick="isDelete();">删除</a>　
					<a href="${ctx}/item/editUI/${o.id }">修改</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
<script type="text/javascript">
	/**
	提示是否删除
	*/
	function isDelete(){
		/* if(confirm("您确定删除这条记录吗?")){
			return true;
		}else{
			return false;
		} */
	}
</script>
</html>